define(function(require, exports){
	var pubjs = require('pubjs');
	// var $ = require('jquery');
	// var util = require('util');
	var table = require('@base/table').list;

	var Client = table.extend({
		init: function(config){
			config = pubjs.conf(config, {
				'cols': [
					{name:"UserId", width: 50, type:'index', align:'center'},
					{name: 'UserName', text: LANG('客户名称'), type:'index',render:'renderName',width:200},
					{type:"op", html:'<a data-op="remove" title="'+LANG("删除指派客户")+'">'+LANG("删除")+'</a>'}
				],
				"opClick": true,
				"scroll_type": "row",
				"scroll_size": 10,
				"key":"UserId",
				'auto_load': false
			});

			this.Super('init', arguments);
		}
		,renderName: function(i,val,data,con) {
			return data.UserName || data.Name || '-';
		}

	});

	exports.client = Client;

});